package com.itany.shop.util;

/**
 * Description: ajax结果
 * Author: liudaolin@itany.com
 * Date: 2021/07/21 15:40
 * Version: 1.0 版本信息
 */
public class AjaxResult {
    private String msg;
    private boolean success;
    private Object data;

    public AjaxResult() {
    }

    public AjaxResult(String msg, boolean success) {
        this.msg = msg;
        this.success = success;
    }

    public AjaxResult(String msg, boolean success, Object data) {
        this.msg = msg;
        this.success = success;
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
